package com.yao.serviceimpl;

import com.yao.dao.UserDao;
import com.yao.entity.UserEntity;
import com.yao.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public UserEntity findByUserName(String username) {
        return userDao.findByUserName(username);
    }
}
